﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class HelloWorld : MonoBehaviour {

    Rect windowRect = new Rect(20, 20, 400, 600);

    void OnGUI()
    {
        windowRect = GUI.Window(0, windowRect, DoMyWindow, "game");
    }



    // Use this for initialization
    void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}


    void DoMyWindow(int windowID)
    {

        if (GUI.Button(new Rect(150, 30, 100, 60), "Logout"))
        {
            SceneManager.LoadScene("login");
        }
        if (GUI.Button(new Rect(10, 110, 100, 60), "100Gold"))
        {
           
        }
        if (GUI.Button(new Rect(150, 110, 100, 60), "Sync"))
        {
       
        }

        if (GUI.Button(new Rect(10, 190, 100, 60), "checkpay"))
        {
          
        }

        if (GUI.Button(new Rect(150, 190, 100, 60), "Exit"))
        {
           
        }

        if (GUI.Button(new Rect(10, 270, 100, 60), "GooglePay"))
        {
        }

    }
}
